// @flow
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry } from 'react-native';

/// Plugin Manager for Android side, gets Plugin information
export interface Spec extends TurboModule {
    /// Get plugin installation path for storing data
    getPluginDirPath():Promise<?string>;

    // Get plugin name
    getPluginName():Promise<?string>;

    /**
     * 获取设备类型
     * 0:A5
     * 1:A6
     * 2:A6X
     * 3:A5X
     * 4:A6X2
     * 5:A5X2
     *  */
    getDeviceType():Promise<number>;
  
}
export default (TurboModuleRegistry.get<Spec>(
  'NativePluginManager'
):?Spec);